solving word problems with linear systems